<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>trim</title>
</head>
<body>
<script>
    /*
    trim
    删除字符串两侧的空格
    返回一个删除后的新的字符串
     */
    var str="     11         ";
    var str1=str.trim();
    console.log(str1);
</script>
</body>
</html>